/* VERSION DEPENDENT CODE */
if (gdb_ver <= GDB_VER_2) {
- char* descr;
+ QString descr;
FWRITE(zbuf, 3);
FWRITE(zbuf, 4);
descr = (wpt_class < gt_waypt_class_map_point) ?
- wpt->url.toUtf8().data() : wpt->description;
+ wpt->url : wpt->description;
if ((descr != NULL) && (wpt_class >= gt_waypt_class_map_point) && \
- (strcmp(descr, wpt->shortname) == 0)) {
- descr = NULL;
+ descr.compare(wpt->shortname) == 0) {
+ descr.clear();
}
FWRITE_CSTR(descr);
} else { /* if (gdb_ver > GDB_VER_3) */
if (wpt->notes) {
xfree(wpt->notes);
}
+
+#if 0
+ // these are now ref counted...
if (wpt->url_next) {
url_link *url_next;
xfree(tonuke);
}
}
+#endif
if (wpt->gc_data != &empty_gc_data) {
geocache_data *gc_data = (geocache_data *)wpt->gc_data;